<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>1CSS层叠性</title>
  <style>
    div {
      color: red;
    }

    div {
      color: pink;
    }
  </style>
</head>

<body>
  <!-- 样式冲突 就近原则    -->
  <div>长江后浪推前浪</div>
</body>

</html>